package com.lupan.practice;

import java.util.Scanner;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/5/18 18:21
 */
public class CardIDDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean checkFlag = true;

        while(checkFlag) {
            String num = scanner.next();
            CardID cardID = new CardID();
            cardID.setCardNum(num);
            if (cardID.lengthVerify() && cardID.charVerify() && cardID.checkCodeVerify()) {
                cardID.outPut();
                checkFlag = false;
            }
        }
    }
}
